﻿<ButtonBase
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             x:Class="Flare.Controls.TilesMenu"
             mc:Ignorable="d" Width="300" Height="150" ClickMode="Press">
    <Border Style="{StaticResource StyleBorderZoomed}" Margin="0">
        <Grid Background="{Binding Background, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ButtonBase}}, TargetNullValue=#FFBFE6E8}">
            <TextBlock Text="{Binding Header, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ButtonBase}}}" 
                       VerticalAlignment="Bottom" HorizontalAlignment="Left" FontSize="24" FontFamily="Segoe UI Light"
                       Margin="8" TextOptions.TextHintingMode="Fixed" TextWrapping="Wrap" Foreground="{DynamicResource ColorText}"/>

        </Grid>
    </Border>
</ButtonBase>
